package oaSystem.biz.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import oaSystem.biz.MessageReceptionBiz;
import oaSystem.entity.MessageReception;
import oaSystem.mapper.MessageReceptionMapper;
@Service
public class MessageReceptionBizImpl implements MessageReceptionBiz{
	@Autowired
	private MessageReceptionMapper messageReceptionMapper;
	
	@Override
	public List<MessageReception> fetchMessageReceptionByMessageId(int messageId) {
		return messageReceptionMapper.fetchMessageReceptionByMessageId(messageId);
	}

	@Override
	public void addMessageReception(MessageReception messageReception) {
		messageReceptionMapper.addMessageReception(messageReception);
	}

	@Override
	public void deleteMessageReceptionByMessageId(Integer messageId) {
		messageReceptionMapper.deleteMessageReceptionByMessageId(messageId);
	}

	@Override
	public void updataMessageReception(MessageReception messageReception) {
		messageReceptionMapper.updataMessageReception(messageReception);
	}

}
